import tkinter as tk
from tkinter import messagebox as msb
from tkinter import ttk 
ZENGFU_TXT="增增"
ZENGFU_STATUS=False
DEFAULT_FOUNT=('微软雅黑',10)
DEFAULT_WIDTH=300


def greet():
    print("hello world")
def notice(root):
    tk.Message(root,text="==================声明=====================",font=DEFAULT_FOUNT,width=DEFAULT_WIDTH).grid(row=1,column=0,padx=0,pady=1)
    tk.Message(root,text="这是一段声明与提示，请认真阅读啊,后果自负",font=DEFAULT_FOUNT,width=DEFAULT_WIDTH).grid(row=2,column=0,padx=10,pady=1)
    tk.Message(root,text="这是一段声明与提示，请认真阅读啊,后果自负",font=DEFAULT_FOUNT,width=DEFAULT_WIDTH).grid(row=3,column=0,padx=10,pady=1)
    tk.Message(root,text="这是一段声明与提示，请认真阅读啊,后果自负",font=DEFAULT_FOUNT,width=DEFAULT_WIDTH).grid(row=4,column=0,padx=10,pady=1)
    tk.Message(root,text="==========================================",font=DEFAULT_FOUNT,width=DEFAULT_WIDTH).grid(row=5,column=0,padx=0,pady=1)

root=ttk.Style()
#style.theme_use("")
#root = tk.Tk();

screen_w , screen_h = root.maxsize()
w_position = screen_w-330
root.title("测试窗口")
#root.geometry(f"300x500+{w_position}+80")
notice(root)
tk.Label(root,text=f"-----{ZENGFU_TXT} ctrl+f9开始，ctrl+f10暂停------",font=DEFAULT_FOUNT,width=DEFAULT_WIDTH).grid(row=6,column=0,padx=10,pady=1)
tk.Label(root,text=f"状态：{ZENGFU_STATUS}",font=DEFAULT_FOUNT).grid(row=7,column=0,padx=10,pady=5)
btn = tk.Button(root,text="增增" ,command=greet).grid(row=8,column=0,padx=10,pady=1)
root.mainloop()